package com.kaching.twitter.stats

import javax.jdo.annotations.{Extension, Persistent, IdGeneratorStrategy, PrimaryKey, PersistenceCapable, IdentityType}
import com.google.appengine.api.datastore.Key

/**
 * This is a singlton object stored in DB
 */
@PersistenceCapable{val identityType = IdentityType.APPLICATION, val detachable="true"}
class Mentions(
  @PrimaryKey 
  @Persistent{val valueStrategy = IdGeneratorStrategy.IDENTITY} 
  var key : Key,
  
  @Persistent 
  var sinceId: Long
)

object Mentions{
  val singletonKey = "singleton_key"
}